package be.ac.ua.pats.thesisrobotica.robot.tests;

//~--- non-JDK imports --------------------------------------------------------

import be.ac.ua.pats.thesisrobotica.robot.display.Menu;

import lejos.nxt.comm.RConsole;

//~--- JDK imports ------------------------------------------------------------

import java.util.ArrayList;

/**
 *
 * @author Jimmy
 */
public class MenuTest {
    public static void main(String[] args) {
        RConsole.open();
        RConsole.println("Started MenuTest");

        ArrayList list = new ArrayList();

        list.add(Menu.BENCHMARK_TEST);
        list.add(Menu.COLORLIGHTSENSOR_TEST);
        list.add(Menu.TOUCHSENSOR_TEST);
        list.add(Menu.ULTRASONICSENSOR_TEST);

        Menu menu   = new Menu(list);
        int  result = menu.start();

        switch (result) {
        case (Menu.TOUCHSENSOR_TEST) :
            RConsole.println("chose touchsensor test");
            break;
        case (Menu.ULTRASONICSENSOR_TEST) :
            RConsole.println("chose ultrasonic test");
            break;
        case (Menu.COLORLIGHTSENSOR_TEST) :
            RConsole.println("chose colorlight test");
            break;
        case (Menu.BENCHMARK_TEST) :
            RConsole.println("chose benchmark");
            break;
        }
    }
}
